/*    */ package com.zimbra.qa.unittest;
/*    */ 
/*    */ import com.zimbra.common.mime.MimeDetect;
/*    */ import junit.framework.TestCase;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class TestMimeDetect
/*    */   extends TestCase
/*    */ {
/*    */   public void testXLSMFileName()
/*    */   {
/* 26 */     assertEquals("application/vnd.ms-excel.sheet.macroEnabled.12", MimeDetect.getMimeDetect().detect("1.xlsm"));
/*    */   }
/*    */   
/*    */   public void testDOCMextension() {
/* 30 */     assertEquals("application/vnd.ms-word.document.macroEnabled.12", MimeDetect.getMimeDetect().detect("1.DOCM"));
/*    */   }
/*    */   
/*    */   public void testPPTMextension() {
/* 34 */     assertEquals("application/vnd.ms-powerpoint.presentation.macroEnabled.12", MimeDetect.getMimeDetect().detect("1.PPtM"));
/*    */   }
/*    */   
/*    */   public static void main(String[] args)
/*    */     throws Exception
/*    */   {
/* 40 */     TestUtil.cliSetup();
/* 41 */     TestUtil.runTest(TestMimeDetect.class);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/qa/unittest/TestMimeDetect.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */